package com.mzj.saas.mservice.property.repository;

import com.mzj.saas.mservice.property.entity.EstateRepairsContentImg;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author hikari
 * @since 2021-05-14
 */
@Repository
public interface EstateRepairsContentImgRepository extends JpaRepository<EstateRepairsContentImg, Long>, JpaSpecificationExecutor<EstateRepairsContentImg> {
    List<EstateRepairsContentImg> findByRepairsId(Long repairsId);

    int deleteByRepairsId(Long repairsId);
}
